<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo:  Fichier source de Piece.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_piece_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Piece.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_piece_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef PIECE_H_</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PIECE_H_</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;stdexcept&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_porte_8h.html">Porte.h</a>&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_liste_portes_8h.html">ListePortes.h</a>&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">namespace </span>TP1</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_t_p1_1_1_piece.html">   28</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_t_p1_1_1_piece.html">Piece</a></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html#afaa69784489912b5d0049bdae2c55430">Piece</a>();</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html#afaa69784489912b5d0049bdae2c55430">Piece</a>(<span class="keyword">const</span> std::string &amp; s);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_t_p1_1_1_piece.html#abd81f5f053d8cc9e7684459019ee6059">~Piece</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html#afaa69784489912b5d0049bdae2c55430">Piece</a>(<span class="keyword">const</span> <a class="code" href="class_t_p1_1_1_piece.html">Piece</a>&amp;);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_t_p1_1_1_piece.html">Piece</a>&amp; <a class="code" href="class_t_p1_1_1_piece.html#a5ee0e179a05b25b76000d2dee00e5d71">operator =</a>(<span class="keyword">const</span> <a class="code" href="class_t_p1_1_1_piece.html">Piece</a>&amp; source);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="class_t_p1_1_1_piece.html#a413794f80b43ce7178088af478412867">getNom</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">setParcourue</a>(<span class="keywordtype">bool</span> p);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_p1_1_1_piece.html#a53b001896020934e421b1a5042771dbf">getParcourue</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> &amp; <a class="code" href="class_t_p1_1_1_piece.html#a0f52ef56da9c4af0cac0ad471aa61932">getPortes</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_p1_1_1_piece.html#a8d33c34dd4e3c4ea3f6f02d9a217d256">ajoutePorte</a>(<a class="code" href="class_t_p1_1_1_porte.html">Porte</a>&amp; p);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_p1_1_1_piece.html#ac84aa28c32a1fb2ea23832b8ebab8f7a">operator == </a>(<a class="code" href="class_t_p1_1_1_piece.html">Piece</a> &amp; p);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_t_p1_1_1_piece.html#a3cf96fa6afdf5b6b5f6e39ffec169d7a">  100</a></span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> <a class="code" href="class_t_p1_1_1_piece.html#a3cf96fa6afdf5b6b5f6e39ffec169d7a">portes</a>; </div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_t_p1_1_1_piece.html#a574c384f439566a899e87eb1443b9837">  102</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_p1_1_1_piece.html#a574c384f439566a899e87eb1443b9837">parcourue</a>; </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="class_t_p1_1_1_piece.html#ad7f4b1d4b036961dc4220df7100da6c8">  104</a></span>&#160;    std::string <a class="code" href="class_t_p1_1_1_piece.html#ad7f4b1d4b036961dc4220df7100da6c8">nom</a>;  </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;};</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;}</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PIECE_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a413794f80b43ce7178088af478412867"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a413794f80b43ce7178088af478412867">TP1::Piece::getNom</a></div><div class="ttdeci">const std::string &amp; getNom() const </div><div class="ttdoc">renvoi le nom de la pièce </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00070">Piece.cpp:70</a></div></div>
<div class="ttc" id="_porte_8h_html"><div class="ttname"><a href="_porte_8h.html">Porte.h</a></div><div class="ttdoc">Ce fichier contient l&#39;interface d&#39;une porte. </div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_abd81f5f053d8cc9e7684459019ee6059"><div class="ttname"><a href="class_t_p1_1_1_piece.html#abd81f5f053d8cc9e7684459019ee6059">TP1::Piece::~Piece</a></div><div class="ttdeci">virtual ~Piece()</div><div class="ttdoc">destructeur de la classe Piece </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00035">Piece.cpp:35</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_afaa69784489912b5d0049bdae2c55430"><div class="ttname"><a href="class_t_p1_1_1_piece.html#afaa69784489912b5d0049bdae2c55430">TP1::Piece::Piece</a></div><div class="ttdeci">Piece()</div><div class="ttdoc">constructeur par défaut de la classe Piece </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00019">Piece.cpp:19</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html"><div class="ttname"><a href="class_t_p1_1_1_porte.html">TP1::Porte</a></div><div class="ttdoc">classe représentant une porte colorée dans un labyrinthe. </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00036">Porte.h:36</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a0f52ef56da9c4af0cac0ad471aa61932"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a0f52ef56da9c4af0cac0ad471aa61932">TP1::Piece::getPortes</a></div><div class="ttdeci">const ListePortes &amp; getPortes() const </div><div class="ttdoc">Accéder à la liste des portes qui partent de la pièce. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00100">Piece.cpp:100</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a5ee0e179a05b25b76000d2dee00e5d71"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a5ee0e179a05b25b76000d2dee00e5d71">TP1::Piece::operator=</a></div><div class="ttdeci">const Piece &amp; operator=(const Piece &amp;source)</div><div class="ttdoc">operateur d&#39;assignation, copie les données membres de la pièce fourni en argument dans l&#39;objet couran...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00054">Piece.cpp:54</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_ad7f4b1d4b036961dc4220df7100da6c8"><div class="ttname"><a href="class_t_p1_1_1_piece.html#ad7f4b1d4b036961dc4220df7100da6c8">TP1::Piece::nom</a></div><div class="ttdeci">std::string nom</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00104">Piece.h:104</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_ac84aa28c32a1fb2ea23832b8ebab8f7a"><div class="ttname"><a href="class_t_p1_1_1_piece.html#ac84aa28c32a1fb2ea23832b8ebab8f7a">TP1::Piece::operator==</a></div><div class="ttdeci">bool operator==(Piece &amp;p)</div><div class="ttdoc">surcharge de l&#39;opérateur == </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00120">Piece.cpp:120</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a98c3d80561cf8cef97a703c845939af9"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">TP1::Piece::setParcourue</a></div><div class="ttdeci">void setParcourue(bool p)</div><div class="ttdoc">Pour initialiser l&#39;attibut parcourue à true ou false. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00080">Piece.cpp:80</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a8d33c34dd4e3c4ea3f6f02d9a217d256"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a8d33c34dd4e3c4ea3f6f02d9a217d256">TP1::Piece::ajoutePorte</a></div><div class="ttdeci">void ajoutePorte(Porte &amp;p)</div><div class="ttdoc">Permet d&#39;ajouter une porte à la liste de portes de cette pièce. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00110">Piece.cpp:110</a></div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html">TP1::ListePortes</a></div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8h_source.html#l00020">ListePortes.h:20</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a574c384f439566a899e87eb1443b9837"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a574c384f439566a899e87eb1443b9837">TP1::Piece::parcourue</a></div><div class="ttdeci">bool parcourue</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00102">Piece.h:102</a></div></div>
<div class="ttc" id="_liste_portes_8h_html"><div class="ttname"><a href="_liste_portes_8h.html">ListePortes.h</a></div><div class="ttdoc">Ce fichier contient l&#39;interface d&#39;une liste de portes. </div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a53b001896020934e421b1a5042771dbf"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a53b001896020934e421b1a5042771dbf">TP1::Piece::getParcourue</a></div><div class="ttdeci">bool getParcourue() const </div><div class="ttdoc">Permet d&#39;accéder à la donnée membre parcourue. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00090">Piece.cpp:90</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a3cf96fa6afdf5b6b5f6e39ffec169d7a"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a3cf96fa6afdf5b6b5f6e39ffec169d7a">TP1::Piece::portes</a></div><div class="ttdeci">ListePortes portes</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00100">Piece.h:100</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_piece_8h.html">Piece.h</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:05 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
